package gcontent.db;

import java.util.HashMap;

public class DBRow {
		
	private HashMap<String, DBColumn> cols = new HashMap<String, DBColumn>();
	private Object value;
	
	public DBRow()
	{
	}
	
	public void addColumn(DBColumn col)
	{
		this.cols.put(col.getName(), col);
	}
	
	public DBColumn getColumn(String col_name)
	{
		return cols.get(col_name);
	}
	
	public void set(DBColumn newValue) {
		cols.put(newValue.getName(), newValue);
	}
	
	public DBColumn get(String name) {
		return cols.get(name);
	}
}
